package com.xms.sdk.event;

import com.xms.core.data.Entity;
import com.xms.event.core.IEvent;
import com.xms.event.core.ObjectDeletingEvent;
import com.xms.schema.entity.Attribute;

import java.util.List;

/**
 * <p>
 * 实体数据删除前事件
 * </p>
 *
 * @author migo
 * @since 2021/9/29
 */
public class EntityDeletingEvent extends ObjectDeletingEvent<Entity> implements IEvent {
    public com.xms.schema.entity.Entity EntityMetadata;
    public List<Attribute> AttributeMetadatas;

    public EntityDeletingEvent(Entity $source) {
        super($source);
    }

    public EntityDeletingEvent(Entity $source, com.xms.schema.entity.Entity $entityMetadata, List<Attribute> $attributeMetadatas) {
        super($source);
        this.EntityMetadata = $entityMetadata;
        this.AttributeMetadatas = $attributeMetadatas;
    }
}